package io.renren.modules.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.sys.dao.SearchDao;
import io.renren.modules.sys.entity.SearchEntity;
import io.renren.modules.sys.service.SearchService;



@Service("searchService")
public class SearchServiceImpl implements SearchService {
	@Autowired
	private SearchDao searchDao;
	
	@Override
	public SearchEntity queryObject(Long id){
		return searchDao.queryObject(id);
	}
	
	@Override
	public List<SearchEntity> queryList(Map<String, Object> map){
		return searchDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return searchDao.queryTotal(map);
	}
	
	@Override
	public void save(SearchEntity search){
		searchDao.save(search);
	}
	
	@Override
	public void update(SearchEntity search){
		searchDao.update(search);
	}
	
	@Override
	public void delete(Long id){
		searchDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		searchDao.deleteBatch(ids);
	}
	
}
